package com.cetcs.kmga.dataManager.entity.logManager;

import com.cetcs.kmga.dataManager.entity.global.AlarmCode;

import java.util.List;

/**
 * 日志查询条件值
 *
 * @author xutao
 * @version V1.0 创建时间：2017-09-18 13:23
 *          Copyright 2017 by CETC
 */
public class LogQueryField {

    private Integer id;

    /**
     * 关联表的ID
     */
    private String tbId;

    /**
     * 字段名
     */
    private String fieldName;

    /**
     * 显示的字段名,用于组装前端json的字段
     */
    private String stdFieldName;

    /**
     * 字段信息
     */
    private String fieldInfo;

    /**
     * 字段的长度
     */
    private Integer fieldLength;


    /**
     * 是否是组装rowKey的字段  1，是，0不是
     */
    private Integer isUnitKey;


    /**
     * 查询方式
     * 1：等于查询
     * 2：模糊查询（like）；
     * 3：in 查询；
     * 4、大于小于查询',
     */
    private Integer queryType;

    /**
     * 展示方式:1、下拉；2：横排
     */
    private Integer showType;

    /**
     * 所处页面位置：1、页面右上角；2、列表上部；3、其他
     */
    private Integer localType;

    /**
     * 生成rowkey的先后顺序，数字越小越在前
     */
    private Integer rowKeySort;

    /**
     * 类型ID
     */
    private Integer typeId;
    /**
     * 码表数据值
     */
    private List<AlarmCode> codes;

    /**
     * 日志索引字段
     */
    private List<LogIndexQueryField> indexs;

    public List<LogIndexQueryField> getIndexs() {
        return indexs;
    }

    public void setIndexs(List<LogIndexQueryField> indexs) {
        this.indexs = indexs;
    }

    public List<AlarmCode> getCodes() {
        return codes;
    }

    public void setCodes(List<AlarmCode> codes) {
        this.codes = codes;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTbId() {
        return tbId;
    }

    public void setTbId(String tbId) {
        this.tbId = tbId;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getStdFieldName() {
        return stdFieldName;
    }

    public void setStdFieldName(String stdFieldName) {
        this.stdFieldName = stdFieldName;
    }

    public String getFieldInfo() {
        return fieldInfo;
    }

    public void setFieldInfo(String fieldInfo) {
        this.fieldInfo = fieldInfo;
    }

    public Integer getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public Integer getIsUnitKey() {
        return isUnitKey;
    }

    public void setIsUnitKey(Integer isUnitKey) {
        this.isUnitKey = isUnitKey;
    }

    public Integer getQueryType() {
        return queryType;
    }

    public void setQueryType(Integer queryType) {
        this.queryType = queryType;
    }

    public Integer getShowType() {
        return showType;
    }

    public void setShowType(Integer showType) {
        this.showType = showType;
    }

    public Integer getLocalType() {
        return localType;
    }

    public void setLocalType(Integer localType) {
        this.localType = localType;
    }

    public Integer getRowKeySort() {
        return rowKeySort;
    }

    public void setRowKeySort(Integer rowKeySort) {
        this.rowKeySort = rowKeySort;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
}
